package com.adcc.ags.cgw.entity.user;

import com.google.common.base.Strings;

/**
 * 路由实体
 */
public abstract class Route {

    // ID
    private String id = Strings.nullToEmpty("");

    // 名称
    private String name = Strings.nullToEmpty("");

    // 类型
    private RouteType type = RouteType.Uplink;

    /**
     * 构造函数
     */
    public Route() {}

    /**
     * 构造函数
     * @param id
     * @param name
     */
    public Route(String id,String name){
        this.id = id;
        this.name = name;
    }

    /**
     * 构造函数
     * @param id
     * @param name
     * @param type
     */
    public Route(String id,String name,RouteType type){
        this.id = id;
        this.name = name;
        this.type = type;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public RouteType getType() {
        return type;
    }

    public void setType(RouteType type) {
        this.type = type;
    }
}
